

export const columnsData = [
    {
        dataField: "YSKMBH",
        dataType: "string",
        caption: "科目编号",
        alignment: "left",
        minWidth: 130
        // groupIndex: 0
    },
    {
        dataField: "KMMC",
        dataType: "string",
        caption: "科目名称",
        width: 220,
        alignment: "left",
        cellRender: (cell: any) => {
            const { KMBH } = cell.data;
            const KMBHData = KMBH.split('~|');
            const KMBHlen = KMBHData.length - 1;
            const nbsp = (count: number) => {
                if (!count || count < 1) {
                    count = 1;
                }
                return new Array(count).fill('\u00A0').join('');
            };
            return <span>{nbsp(KMBHlen)}{cell.data.KMMC}</span>;
        }
    },
    {
        dataField: "KMFX",
        dataType: "string",
        caption: "方向",
        width: 80,
        alignment: "center"
    },
    {
        dataField: "SQQQMSDS",
        dataType: "number",
        caption: "上期期末审定数",
        alignment: "left", dataTypeCustom: "money-number",
        format: {
            type: 'fixedPoint',
            precision: 2
        }
    },
    {
        dataField: "QCWSS",
        dataType: "number",
        caption: "本期期初未审数",
        alignment: "left", dataTypeCustom: "money-number",
        format: {
            type: 'fixedPoint',
            precision: 2
        }
    },
    {
        dataField: "CQCY",
        dataType: "number",
        caption: "期初差异",
        alignment: "left", dataTypeCustom: "money-number",
        format: {
            type: "fixedPoint",
            precision: 2
        }
    },
]